<?php
namespace App\Event\User;

use App\Event\Event;
use App\Repository\LevelRepository;

// 补贴统计事件
class MoneyFullAllEvent extends Event
{
    public $user;
    
    public $money;
    
    public $level;
    
    // 用户及金额
    public function __construct($user, $money)
    {
        $this->user = $user;
        $this->money = $money;
        $this->level = LevelRepository::make($user->level);
    }
}